#ifndef		___MSG_SESSION___
#define		___MSG_SESSION___

#include "Message/MsgBase.h"
#include "Message/MsgCategory.h"
//
//	send from network to logic layer, when session established with game server
//
class TCOM_API MsgSessionOpened : public MsgBase
{
public:
	enum{	Category = Msg::MC_Control, Id = 1	};

	MsgSessionOpened();

	virtual void dump();
	virtual bool validate();
public:
};

//
//	sent from network to logic layer, when session disconnected from game server
//
class TCOM_API MsgSessionClosed : public MsgBase
{
public:
	enum{	Category = Msg::MC_Control, Id = 2	};

	MsgSessionClosed(int nSID = 0);

	virtual void dump();
	virtual bool validate();
public:
	int		m_nSessionID;
};

class TCOM_API MsgSessionUpdate : public MsgBase
{
public:
	enum{	Category = Msg::MC_Control, Id = 3	};

	MsgSessionUpdate(int nSID = 0);

	virtual void dump();
	virtual bool validate();
public:
	int		m_nSessionID;
};
#endif

